#用python编程从1开始，输出能被9整除的数，每20个一行，最多到10000结
count = 0 
for i in range(1, 10001):
    if i % 9 == 0:
        print(i, end=' ')
        count += 1
        if count % 20 == 0:
            print()